export default {
  toViewData: propsConfig => {
    const { maxNum, maxSize, fileType, customType } = propsConfig.restrictions;

    return {
      maxNum: Number(maxNum),
      maxSize: Number(maxSize.value),
      fileType: fileType,
      customType: customType
    };
  }
}